package com.jf.blogbackened.service;

import com.jf.blogbackened.bean.Admin;
import com.jf.blogbackened.bean.PageBean;
import com.jf.blogbackened.bean.Result;
import com.jf.blogbackened.bean.User;

public interface UserService {
    Result<Admin> login(Admin admin);

    PageBean<User> getAllUser(User params, Integer currentPage, Integer pageSize);

    Result<User> addOrUpdateUser(User user);

    Result<User> getUserById(Integer id);
    

    Result<User> deleteUserById(Integer id);

    Result getAllUsers();
}
